package LinkedHashSetDemo;

import java.util.*;


public class LinkedHashSetDemo {
	public static void main(String[] args) {
		
		LinkedHashSet<String> a = new LinkedHashSet<String>();
		
		a.add("aaa");
		a.add("bbb");
		
		Iterator<String> it = a.iterator();
		
		
		for(String s : a) {
			System.out.println(s);
		}
		
		Iterator<String> b = a.iterator();
		while(b.hasNext()) {
			String s = b.next();
			System.out.println(s);
		}
		
		
	}

}
